package com.cai.primeton.entity;

import java.util.HashMap;
import java.util.Map;

/**
 * @version 1.0
 * @author：蔡松坡
 * @date：2021/7/1 14 : 23
 * @package：com.cai.primeton.entity
 */
public class R extends HashMap{
    private Integer code;
    private String msg;
    private String name;

    public R(Integer code,String msg){
        this.code = code;
        this.msg = msg;

    }
    public R(){}

    public R result(){
        R r = new R();
        r.put("code",this.code);
        r.put("msg",this.msg);
        return r;
    }
}
